Skip to main content

RotateAnimation

declare class RotateAnimation {}

RotateAnimation

Instance Method

constructor

declare class RotateAnimation {
constructor(fromDegrees: number, toDegrees: number)
}
  • Description

    Constructor to use when building a RotateAnimation from code.

constructor

declare class RotateAnimation {
constructor(fromDegrees: number, toDegrees: number, pivotX: number, pivotY: number)
}
  • Description

    Constructor to use when building a RotateAnimation from code

constructor

declare class RotateAnimation {
constructor(fromDegrees: number, toDegrees: number, pivotXType: number, pivotXValue: number, pivotYType: number, pivotYValue: number)
}
  • Description

    Constructor to use when building a RotateAnimation from code

applyTransformation

declare class RotateAnimation {
applyTransformation(interpolatedTime: number, t: Transformation): void
}
  • Description

    Helper for getTransformation.

initialize

declare class RotateAnimation {
initialize(width: number, height: number, parentWidth: number, parentHeight: number): void
}
  • Description

    Initialize this animation with the dimensions of the object being animated as well as the objects parents.